package com.itheima.mapper;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberDAO {
    void add(Member member);

    @Select("select * from t_member where idCard = #{idCard}")
    Member findByIdCard(String idCard);

    @Select("select * from t_member where id = #{id}")
    Member findById(Integer memberId);
}
